package io.renren.modules.live.service;

import com.baomidou.mybatisplus.extension.service.IService;
import io.renren.common.utils.PageUtils;
import io.renren.modules.live.entity.FanweUserEntity;
import io.renren.modules.live.entity.FanweVideoPropEntity;
import io.renren.modules.live.vo.UserAnchorUpdateInfoVo;
import io.renren.modules.live.vo.UserListVo;
import io.renren.modules.live.vo.getVideoProdMoneyByTimeAndIdDTO;

import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * 用户信息
 *
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2020-11-17 09:18:22
 */
public interface FanweUserService extends IService<FanweUserEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 根据用户名，查询系统用户
     */
    FanweUserEntity queryByUserName(String username);


    /**
     * 管理员查看用户列表
     * @return
     */
    Map<String , Object> selectUserList(UserListVo userListVo) throws Exception;
    /**
     * 通过ID查询用户信息
     */
    FanweUserEntity selectUserByid(Long userId);

    void updatePwd(Long userId, String newPwd);

    void updatePayPwd(Long userId, String newPwd);

    void addUserFile(Long userid , String fileUrl);

    void saveUser(FanweUserEntity fanweUserEntity);

    void updateUserById(UserAnchorUpdateInfoVo userAnchorUpdateInfoVo);

    List<getVideoProdMoneyByTimeAndIdDTO> getUserByIdSet(Integer videoId, String time);
}

